import axios from 'axios';
import router from '@/router';
import { message } from 'ant-design-vue';
// axios.defaults.baseURL = 'http://211.160.78.145:8081/jeecg-boot';
// axios.defaults.baseURL = 'http://211.160.78.168:8080/jeecg-boot';
axios.defaults.baseURL = 'https://cxj.cec.org.cn/api';
axios.defaults.timeout = 60000

axios.interceptors.request.use(
    config => {
		if (config.method == 'get') {
			config.data = true;
		}
        // config.headers['Content-Type'] = 'application/x-www-form-urlencoded';
        let token = sessionStorage.getItem('token')
        if (token) {
            config.headers.common['X-Access-Token'] = sessionStorage.getItem('token');
        }
        return config
    },
    err => {
        return Promise.reject(err);
    }
)
// http response 拦截器
axios.interceptors.response.use(
    response => {
        return response
    },
    error => {
        let data = JSON.parse(JSON.stringify(error));
		console.log('error', data);
        if (data.response.status == '404') {
            message.destroy();
            message.error(data.response.data.message);
        } else {
			sessionStorage.clear();
			router.replace({
				path: '/shenbao/login'
			})
            message.destroy();
            message.error(data.response.data.message);
        }
        return Promise.reject(error) // 返回接口返回的错误信息
    }
)

export function randomImage(key) {
    return axios({
        url: '/sys/randomImage/' + key,
        method: 'get'
    })
}

export function cxjsb_getYzm(parameter) {
    return axios({
        url: '/cxj/sysCxjUser/cxjsb_getYzm',
        method: 'get',
        params: parameter
    })
}

export function sbRegister(parameter) {
    return axios({
        url: '/cxj/sysCxjUser/cxjsb_UserRegister',
        method: 'get',
        params: parameter
    })
}

export function cxjsb_UserLogin(parameter) {
    return axios({
        url: '/cxj/sysCxjUser/cxjsb_UserLogin',
        method: 'get',
        params: parameter
    })
}

export function cxjsb_UserYzmLogin(parameter) {
    return axios({
        url: '/cxj/sysCxjUser/cxjsb_UserYzmLogin',
        method: 'get',
        params: parameter
    })
}

export function cxjsb_ModifyPhoneNumber(params) {
	return axios({
        url: '/cxj/sysCxjUser/cxjsb_ModifyPhoneNumber',
        method: 'get',
        params: params
    })
}

export function cxjsb_UserReset(params) {
	return axios({
        url: '/cxj/sysCxjUser/cxjsb_UserReset',
        method: 'get',
        params: params
    })
}
export function logout() {
	return axios({
        url: '/cxj/sysCxjUser/logout',
        method: 'get',
    })
}
// 创新奖申报-验证原用户
export function cxjsb_UserVerification(params) {
	return axios({
        url: '/cxj/sysCxjUser/cxjsb_UserVerification',
        method: 'get',
		params
    })
}
// 创新奖申报-用户注册绑定
export function cxjsb_UserBindRegister(params) {
	return axios({
        url: '/cxj/sysCxjUser/cxjsb_UserBindRegister',
        method: 'get',
		params
    })
}
// 创新奖申报-通知公告列表[分页]查询
export function cxjsbPageList(params) {
    return axios({
        url: '/cxj/sysCxjTzgg/cxjsb_pagelist',
        method: 'get',
        params
    })
}

// 创新奖申报-通知公告-通过id查询
export function cxjsbQueryById(params) {
    return axios({
        url: '/cxj/sysCxjTzgg/cxjsb_queryById?id=' + params,
        method: 'get'
    })
}

// 创新奖申报-资料表列表查询
export function sysCxjZlList(params) {
    return axios({
        url: '/cxj/sysCxjZl/cxjsb_pagelist',
        method: 'get',
        params
    })
}

// 创新奖申报-资料下载
export function sysCxjZlDownload(params) {
    return axios({
        url: '/sys/common/static/' + params,
        method: 'get',
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'blob'
    })
}

// 创新奖申报-分类及时间列表
export function sysCxjFlCxjsbList() {
    return axios({
        url: '/cxj/sysCxjFl/cxjsb_list',
        method: 'get'
    })
}

// 创新奖申报-检查是否在申报日期内
export function cxjsbCheckFlSbsj(params) {
    return axios({
        url: '/cxj/cxjCxj/cxjsb_checkFlSbsj',
        method: 'get',
        params
    })
}

// 创新奖申报-申报时间内成果分类列表
export function cxjsbValidlist() {
    return axios({
        url: '/cxj/sysCxjFl/cxjsb_validlist',
        method: 'get'
    })
}

// 创新奖申报-成果来源列表
export function cxjsbCglylist() {
    return axios({
        url: '/cxj/sysCxjCgly/cxjsb_cglylist',
        method: 'get'
    })
}

// 创新奖申报-分类字典表加载树
export function cxjsbLoadTreeRoot(params) {
    return axios({
        url: '/sys/category/cxjsb_loadTreeRoot',
        method: 'get',
        params
    })
}
// 创新奖申报-成果基本信息弹窗保存
export function cxjsbAdd(data) {
    return axios({
        url: '/cxj/cxjCxj/cxjsb_add',
        method: 'post',
        data
    })
}
// 创新奖申报-成果基本信息详情
export function cxjsbGetCxjByid(params) {
    return axios({
        url: '/cxj/cxjCxj/cxjsb_getCxjByid',
        method: 'get',
        params
    })
}
// 已报成果
export function cxjsb_yblist() {
    return axios({
        url: '/cxj/cxjCxj/cxjsb_yblist',
        method: 'get'
    })
}
// 往年成果
export function cxjsb_lsyblist(params) {
    return axios({
        url: '/cxj/cxjCxj/cxjsb_lsyblist',
        method: 'get',
		params
    })
}

//左侧列表 cxjsb_list
export function cxjsb_list(params) {
    return axios({
        url: '/cxj/sysCxjZlml/cxjsb_list',
        method: 'get',
        params
    })
}

// 创新奖申报-申报单位保存
export function cxjsbSbdwAdd(data) {
    return axios({
        url: '/cxj/cxjSbSbdw/cxjsb_SbdwAdd',
        method: 'post',
        data
    })
}

// 创新奖申报-申报单位详情
export function cxjsbGetSbtjdw(params) {
    return axios({
        url: '/cxj/cxjSbSbdw/cxjsb_getSbtjdw',
        method: 'get',
        params
    })
}

// 创新奖申报-申报单位列表
export function cxjsbSbtjdwlist(params) {
    return axios({
        url: '/cxj/cxjSbSbdw/cxjsb_sbtjdwlist',
        method: 'get',
        params
    })
}


// 创新奖申报-完成单位保存
export function cxjsbWcdwAdd(data) {
    return axios({
        url: '/cxj/cxjSbWcdw/cxjsb_WcdwAdd',
        method: 'post',
        data
    })
}

// 创新奖申报-完成单位列表
export function cxjsbWcdwList(params) {
    return axios({
        url: '/cxj/cxjSbWcdw/cxjsb_wcdwList',
        method: 'get',
        params
    })
}

// 创新奖申报-完成单位详情
export function cxjsbGetWcdw(params) {
    return axios({
        url: '/cxj/cxjSbWcdw/cxjsb_getWcdw',
        method: 'get',
        params
    })
}

// 创新奖申报-完成单位删除
export function cxjsbWcdwDelete(params) {
    return axios({
        url: '/cxj/cxjSbWcdw/cxjsb_wcdwDelete',
        method: 'get',
        params
    })
}

// 创新奖申报-省份列表
export function cxjsbSfList(params) {
    return axios({
        url: '/cxj/sysCxjXzdq/cxjsb_sfList',
        method: 'get',
        params
    })
}

// 创新奖申报-根据省份获取地市列表
export function cxjsbListDsBySf(params) {
    return axios({
        url: '/cxj/sysCxjXzdq/cxjsb_listDsBySf',
        method: 'get',
        params
    })
}

// 创新奖申报-所属集团列表
export function cxjsbSsjtlist(params) {
    return axios({
        url: '/cxj/sysCxjJttjdw/cxjsb_ssjtlist',
        method: 'get',
        params
    })
}

// 创新奖申报-推荐单位类型列表
export function cxjsbTjdwlbList() {
    return axios({
        url: '/cxj/sysCxjJttjdw/cxjsb_tjdwlbList',
        method: 'get'
    })
}

// 创新奖申报-推荐单位列表
export function cxjsbTjdwlist() {
    return axios({
        url: '/cxj/sysCxjJttjdw/cxjsb_tjdwlist',
        method: 'get'
    })
}

// 创新奖申报-根据推荐单位类别获取推荐单位列表
export function cxjsbTjdwlistBylb(params) {
    return axios({
        url: '/cxj/sysCxjJttjdw/cxjsb_tjdwlistBylb',
        method: 'get',
        params
    })
}

// 成果联系人
export function cxjsb_LxrAdd(data) {
    return axios({
        url: '/cxj/cxjSbLxr/cxjsb_LxrAdd',
        method: 'post',
        data
    })
}

//

// 获取成果联系人
export function cxjsb_getLxr(params) {
    return axios({
        url: '/cxj/cxjSbLxr/cxjsb_getLxr',
        method: 'get',
        params
    })
}
export function zlsb_LxrAdd(data) {
    return axios({
        url: '/cxj/zlLxr/zlsb_LxrAdd',
        method: 'post',
        data
    })
}
export function zlsb_getLxr(params) {
    return axios({
        url: '/cxj/zlLxr/zlsb_getLxr',
        method: 'get',
        params
    })
}
// 项目简介详情
export function cxjsb_getSbbxmjj(cxj_cxj_id) {
	return axios({
		url: '/cxj/cxjSbSbbXmjj/cxjsb_getSbbxmjj?cxj_cxj_id='+cxj_cxj_id,
        method: 'get'
	})
}

//项目简介保存和修改
export function cxjsb_xmjjAdd(data) {
	return axios({
		url: '/cxj/cxjSbSbbXmjj/cxjsb_xmjjAdd',
        method: 'post',
		data
	})
}

//创新点详情
export function cxjsb_getSbbcxd(cxj_cxj_id) {
	return axios({
		url: '/cxj/cxjSbSbbCxd/cxjsb_getSbbcxd?cxj_cxj_id='+cxj_cxj_id,
        method: 'get',
	})
}

// 创新点保存和修改
export function cxjsb_cxdAdd(data) {
	return axios({
		url: '/cxj/cxjSbSbbCxd/cxjsb_cxdAdd',
        method: 'post',
		data
	})
}

//实施应用详情
export function cxjsb_getSbbssyy(cxj_cxj_id) {
	return axios({
		url: '/cxj/cxjSbSbbSsyy/cxjsb_getSbbssyy?cxj_cxj_id='+cxj_cxj_id,
        method: 'get',
	})
}

// 实施应用保存和修改
export function cxjsb_ssyyAdd(data) {
	return axios({
		url: '/cxj/cxjSbSbbSsyy/cxjsb_ssyyAdd',
        method: 'post',
		data
	})
}

//社会效益与间接经济效益详情
export function cxjsb_getSbbshxy(cxj_cxj_id) {
	return axios({
		url: '/cxj/cxjSbSbbShxy/cxjsb_getSbbshxy?cxj_cxj_id='+cxj_cxj_id,
        method: 'get',
	})
}

// 社会效益与间接经济效益保存和修改
export function cxjsb_shxyAdd(data) {
	return axios({
		url: '/cxj/cxjSbSbbShxy/cxjsb_shxyAdd',
        method: 'post',
		data
	})
}

//研究报告详情
export function cxjsb_getSbbyjbg(cxj_cxj_id) {
	return axios({
		url: '/cxj/cxjSbSbbYjbg/cxjsb_getSbbyjbg?cxj_cxj_id='+cxj_cxj_id,
        method: 'get',
	})
}

// 研究报告保存和修改
export function cxjsb_yjbgAdd(data) {
	return axios({
		url: '/cxj/cxjSbSbbYjbg/cxjsb_yjbgAdd',
        method: 'post',
		data
	})
}

// 主要完成人表-添加
export function cxjSbWcrAdd(data, cxj_cxj_id) {
	return axios({
		url: '/cxj/cxjSbWcr/cxjsb_add?cxj_cxj_id='+cxj_cxj_id,
        method: 'post',
		data,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
	})
}

// 主要完成人表-分页列表查询
export function wcrListByCxjId(params) {
	return axios({
		url: '/cxj/cxjSbWcr/cxjsb_listByCxjId',
        method: 'get',
		params
	})
}

// 主要完成人表-通过id查询
export function cxjsbWcrQueryById(params) {
	return axios({
		url: '/cxj/cxjSbWcr/cxjsb_queryById',
        method: 'get',
		params
	})
}

// 主要完成人表-通过id删除
export function cxjSbWcrDelete(params) {
	return axios({
		url: '/cxj/cxjSbWcr/delete',
        method: 'get',
		params
	})
}

// 主要完成人表-从已有人员选择
export function cxjsbQueryWcrById() {
	return axios({
		url: '/cxj/cxjSbWcr/cxjsb_queryWcrById',
        method: 'get'
	})
}

//第三方评价鉴定证明详情
export function cxjsb_getJdps(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjJdzs/cxjsb_getJdps',
        method: 'get',
		params
	})
}

// 第三方评价鉴定证书保存和修改
export function cxjsb_jdpsAdd(data) {
	return axios({
		url: '/cxj/cxjSbDsfpjJdzs/cxjsb_jdpsAdd',
        method: 'post',
		data
	})
}
//第三方评价鉴定证明列表
export function cxjsb_jdzmList(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjJdzs/cxjsb_jdzmList',
        method: 'get',
		params
	})
}

// 第三方评价鉴定证明删除
export function cxjsb_jdpsDelete(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjJdzs/cxjsb_jdpsDelete',
        method: 'get',
		params
	})
}
//第三方评价评审证明详情
export function cxjsb_getPszm(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjPszm/cxjsb_getPszm',
        method: 'get',
		params
	})
}
// 第三方评价评审证明保存和修改
export function cxjsb_pszmAdd(data) {
	return axios({
		url: '/cxj/cxjSbDsfpjPszm/cxjsb_pszmAdd',
        method: 'post',
		data
	})
}
//第三方评价评审证明列表
export function cxjsb_pszmList(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjPszm/cxjsb_pszmList',
        method: 'get',
		params
	})
}
// 第三方评价评审证明删除
export function cxjsb_pszmDelete(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjPszm/cxjsb_pszmDelete',
        method: 'get',
		params
	})
}

//第三方评价验收报告详情
export function cxjsb_getYsbg(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjYsbg/cxjsb_getYsbg',
        method: 'get',
		params
	})
}
// 第三方评价验收报告保存和修改
export function cxjsb_ysbgAdd(data) {
	return axios({
		url: '/cxj/cxjSbDsfpjYsbg/cxjsb_ysbgAdd',
        method: 'post',
		data
	})
}
//第三方评价验收报告列表
export function cxjsb_ysbgList(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjYsbg/cxjsb_ysbgList',
        method: 'get',
		params
	})
}
// 第三方评价验收报告删除
export function cxjsb_ysbgDelete(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjYsbg/cxjsb_ysbgDelete',
        method: 'get',
		params
	})
}
export function cxjsb_getPjzm(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjPjzm/cxjsb_getPjzm',
        method: 'get',
		params
	})
}
// 第三方评价证明保存和修改
export function cxjsb_pjzmAdd(data) {
	return axios({
		url: '/cxj/cxjSbDsfpjPjzm/cxjsb_pjzmAdd',
        method: 'post',
		data
	})
}
//第三方评价证明列表
export function cxjsb_pjzmList(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjPjzm/cxjsb_pjzmList',
        method: 'get',
		params
	})
}
// 第三方评价证明删除
export function cxjsb_pjzmDelete(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjPjzm/cxjsb_pjzmDelete',
        method: 'get',
		params
	})
}
export function cxjsb_getCxbg(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjCxbg/cxjsb_getCxbg',
        method: 'get',
		params
	})
}
// 第三方评价证明保存和修改
export function cxjsb_cxbgAdd(data) {
	return axios({
		url: '/cxj/cxjSbDsfpjCxbg/cxjsb_cxbgAdd',
        method: 'post',
		data
	})
}
//第三方评价证明列表
export function cxjsb_cxbgList(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjCxbg/cxjsb_cxbgList',
        method: 'get',
		params
	})
}
// 第三方评价证明删除
export function cxjsb_cxbgDelete(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjCxbg/cxjsb_cxbgDelete',
        method: 'get',
		params
	})
}

export function cxjsb_getQtzm(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjQtzm/cxjsb_getQtzm',
        method: 'get',
		params
	})
}
// 第三方评价证明保存和修改
export function cxjsb_qtzmAdd(data) {
	return axios({
		url: '/cxj/cxjSbDsfpjQtzm/cxjsb_qtzmAdd',
        method: 'post',
		data
	})
}
//第三方评价证明列表
export function cxjsb_qtzmList(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjQtzm/cxjsb_qtzmList',
        method: 'get',
		params
	})
}
// 第三方评价证明删除
export function cxjsb_qtzmDelete(params) {
	return axios({
		url: '/cxj/cxjSbDsfpjQtzm/cxjsb_qtzmDelete',
        method: 'get',
		params
	})
}
//知识产权详情
export function cxjsb_getZscq(params) {
	return axios({
		url: '/cxj/cxjSbFjZscq/cxjsb_getZscq',
        method: 'get',
		params
	})
}
// 知识产权保存和修改
export function cxjsb_zscqAdd(data) {
	return axios({
		url: '/cxj/cxjSbFjZscq/cxjsb_zscqAdd',
        method: 'post',
		data
	})
}
//知识产权列表
export function cxjsb_zscqList(params) {
	return axios({
		url: '/cxj/cxjSbFjZscq/cxjsb_zscqList',
        method: 'get',
		params
	})
}
// 知识产权删除
export function cxjsb_zscqDelete(params) {
	return axios({
		url: '/cxj/cxjSbFjZscq/cxjsb_zscqDelete',
        method: 'get',
		params
	})
}

//附件-实施应用详情
export function cxjsb_getSsyy(params) {
	return axios({
		url: '/cxj/cxjSbFjSsyy/cxjsb_getSsyy',
        method: 'get',
		params
	})
}
// 附件-实施应用保存和修改
export function cxjsb_ssyyAdd_fj(data) {
	return axios({
		url: '/cxj/cxjSbFjSsyy/cxjsb_ssyyAdd',
        method: 'post',
		data
	})
}
//附件-实施应用列表
export function cxjsb_ssyyList(params) {
	return axios({
		url: '/cxj/cxjSbFjSsyy/cxjsb_ssyyList',
        method: 'get',
		params
	})
}
// 附件-实施应用删除
export function cxjsb_ssyyDelete(params) {
	return axios({
		url: '/cxj/cxjSbFjSsyy/cxjsb_ssyyDelete',
        method: 'get',
		params
	})
}

//附件-其他附件详情
export function cxjsb_getQtfj(params) {
	return axios({
		url: '/cxj/cxjSbFjQt/cxjsb_getQtfj',
        method: 'get',
		params
	})
}
// 附件-其他附件保存和修改
export function cxjsb_qtfjAdd(data) {
	return axios({
		url: '/cxj/cxjSbFjQt/cxjsb_qtfjAdd',
        method: 'post',
		data
	})
}
//附件-其他附件列表
export function cxjsb_qtfjList(params) {
	return axios({
		url: '/cxj/cxjSbFjQt/cxjsb_qtfjList',
        method: 'get',
		params
	})
}
// 附件-其他附件删除
export function cxjsb_qtfjDelete(params) {
	return axios({
		url: '/cxj/cxjSbFjQt/cxjsb_qtfjDelete',
        method: 'get',
		params
	})
}

// 创新奖申报-获取文件信息
export function fileDownload(params) {
	return axios({
		url: '/cxj/cxjCxj/download',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'blob'
	})
}

// 创新奖申报-曾获奖励情况列表
export function cxjsbChjList(params) {
	return axios({
		url: '/cxj/cxjSbChj/cxjsb_chjList',
        method: 'get',
		params
	})
}
// 创新奖申报-曾获奖励情况保存和修改
export function cxjsbChjjAdd(data) {
	return axios({
		url: '/cxj/cxjSbChj/cxjsb_chjjAdd',
        method: 'post',
		data
	})
}
// 创新奖申报-曾获奖励情况详情
export function cxjsbGetChjj(params) {
	return axios({
		url: '/cxj/cxjSbChj/cxjsb_getChjj',
        method: 'get',
		params
	})
}
// 创新奖申报-曾获奖励情况删除
export function cxjsbChjDelete(params) {
	return axios({
		url: '/cxj/cxjSbChj/cxjsb_chjDelete',
        method: 'get',
		params
	})
}

// 创新奖申报-标准文本列表
export function cxjsbBzwbList(params) {
	return axios({
		url: '/cxj/cxjSbFjBzwb/cxjsb_bzwbList',
        method: 'get',
		params
	})
}
// 创新奖申报-标准文本保存和修改
export function cxjsbBzwbAdd(data) {
	return axios({
		url: '/cxj/cxjSbFjBzwb/cxjsb_bzwbAdd',
        method: 'post',
		data
	})
}
// 创新奖申报-标准文本详情
export function cxjsbGetBzwb(params) {
	return axios({
		url: '/cxj/cxjSbFjBzwb/cxjsb_getBzwb',
        method: 'get',
		params
	})
}
// 创新奖申报-标准文本删除
export function cxjsbBzwbDelete(params) {
	return axios({
		url: '/cxj/cxjSbFjBzwb/cxjsb_bzwbDelete',
        method: 'get',
		params
	})
}

// 创新奖申报-单位意见保存和修改
export function cxjsbDwyjAdd(data) {
	return axios({
		url: '/cxj/zgSbSbbDwyj/cxjsb_dwyjAdd',
        method: 'post',
		data
	})
}
// 创新奖申报-单位意见详情
export function cxjsbGetSbbdwyj(params) {
	return axios({
		url: '/cxj/zgSbSbbDwyj/cxjsb_getSbbdwyj',
        method: 'get',
		params
	})
}

// 单位意见声明
export function cxjsbGetDwyjsm(params) {
	return axios({
		url: '/cxj/cxjSbDwsm/cxjsb_getDwyjsm',
        method: 'get',
		params
	})
}

// 获取申报完成信息
export function cxjsb_getSbwc(params) {
	return axios({
		url: '/cxj/cxjCxj/cxjsb_getSbwc',
        method: 'get',
		params
	})
}

// 获取申报完成信息
export function cxjsb_sbwc(data) {
	return axios({
		url: '/cxj/cxjCxj/cxjsb_sbwc?cxj_cxj_id='+data,
        method: 'post',
	})
}

// 成果经济效益
export function cjxsb_add(data, cxj_cxj_id) {
	return axios({
		url: '/cxj/cxjSbSbbJjxy/cjxsb_add?cxj_cxj_id='+cxj_cxj_id,
        method: 'post',
		data,
        headers: {
            'Content-Type': 'application/json'
        }
	})
}
// 成果经济效益-通过id查询
export function cxjsb_queryById_jjxy(params) {
	return axios({
		url: '/cxj/cxjSbSbbJjxy/cxjsb_queryById',
        method: 'get',
		params
	})
}
//经济效益列表
export function cxjsb_list_jjxy(params) {
	return axios({
		url: '/cxj/cxjSbSbbJjxyzb/cxjsb_list',
        method: 'get',
		params
	})
}
//经济效益列表添加
export function cxjsb_add_jjxy(data, cxj_cxj_id) {
	return axios({
		url: '/cxj/cxjSbSbbJjxyzb/cxjsb_add?cxj_cxj_id='+cxj_cxj_id,
        method: 'post',
		data,
        headers: {
            'Content-Type': 'application/json'
        }
	})
}
//经济效益子表-通过id删除
export function cxjsb_del_jjxy(params) {
	return axios({
		url: '/cxj/cxjSbSbbJjxyzb/delete',
        method: 'get',
		params
	})
}
// 专利申报-专利基本信息保存和修改
export function zlsbZlAdd(data) {
	return axios({
		url: '/cxj/zlZl/zlsb_zlAdd',
        method: 'post',
		data
	})
}
// 专利申报-专利基本信息详情
export function zlsbGetZl(params) {
	return axios({
		url: '/cxj/zlZl/zlsb_getZl',
        method: 'get',
		params
	})
}
//专利申报-专利质量评价材料详情
export function zlsb_getZlpj(cxj_cxj_id) {
	return axios({
		url: '/cxj/zlSbbZlpj/zlsb_getZlpj?cxj_cxj_id='+cxj_cxj_id,
        method: 'get',
	})
}
// 专利申报-专利质量评价材料保存和修改
export function zlsb_zlpjAdd(data) {
	return axios({
		url: '/cxj/zlSbbZlpj/zlsb_zlpjAdd',
        method: 'post',
		data
	})
}
//专利申报-技术先进性评价材料详情
export function zlsb_getJsxjx(params) {
	return axios({
		url: '/cxj/zlSbbJsxjx/zlsb_getJsxjx',
        method: 'get',
		params
	})
}
//专利申报-技术先进性评价材料保存和修改
export function zlsb_jsxjxAdd(data) {
	return axios({
		url: '/cxj/zlSbbJsxjx/zlsb_jsxjxAdd',
        method: 'post',
		data
	})
}
//专利申报-社会效益及发展前景评价详情
export function zlsb_getShxy(params) {
	return axios({
		url: '/cxj/zlSbbShxy/zlsb_getShxy',
        method: 'get',
		params
	})
}
//专利申报-社会效益及发展前景评价保存和修改
export function zlsb_shxyAdd(data) {
	return axios({
		url: '/cxj/zlSbbShxy/zlsb_shxyAdd',
        method: 'post',
		data
	})
}
//专利申报-获奖情况详情
export function zlsb_getHjqk(params) {
	return axios({
		url: '/cxj/zlSbbHjqk/zlsb_getHjqk',
        method: 'get',
		params
	})
}
//专利申报-获奖情况保存和修改
export function zlsb_hjqkAdd(data) {
	return axios({
		url: '/cxj/zlSbbHjqk/zlsb_hjqkAdd',
        method: 'post',
		data
	})
}
//专利申报-设计要点及理念的表达评价材料详情
export function zlsb_getSjyd(params) {
	return axios({
		url: '/cxj/zlSbbSjyd/zlsb_getSjyd',
        method: 'get',
		params
	})
}
//专利申报-设计要点及理念的表达评价材料保存和修改
export function zlsb_sjydAdd(data) {
	return axios({
		url: '/cxj/zlSbbSjyd/zlsb_sjydAdd',
        method: 'post',
		data
	})
}
//专利申报-保护措施和成效评价1保存和修改
export function zlsb_bh1Add(data) {
	return axios({
		url: '/cxj/zlSbbBh1/zlsb_bh1Add',
        method: 'post',
		data
	})
}
//专利申报-保护措施和成效评价1详情
export function zlsb_getBh1 (params) {
	return axios({
		url: '/cxj/zlSbbBh1/zlsb_getBh1',
        method: 'get',
		params
	})
}
//专利申报-保护措施和成效评价2保存和修改
export function zlsb_bh2Add(data) {
	return axios({
		url: '/cxj/zlSbbBh2/zlsb_bh2Add',
        method: 'post',
		data
	})
}
//专利申报-保护措施和成效评价2详情
export function zlsb_getBh2 (params) {
	return axios({
		url: '/cxj/zlSbbBh2/zlsb_getBh2',
        method: 'get',
		params
	})
}
// 专利申报-专利授权文本详情
export function zlsb_getZlsqwb (params) {
	return axios({
		url: '/cxj/zlFjZlsqwb/zlsb_getZlsqwb',
        method: 'get',
		params
	})
}
// 专利申报-专利授权文本保存和修改
export function zlsb_zlsqwbAdd (data) {
	return axios({
		url: '/cxj/zlFjZlsqwb/zlsb_zlsqwbAdd',
        method: 'post',
		data
	})
}
// 专利申报-专利授权文本删除
export function zlsb_zlsqwbDelete(params) {
	return axios({
		url: '/cxj/zlFjZlsqwb/zlsb_zlsqwbDelete',
        method: 'get',
		params
	})
}
// 专利申报-专利授权文本列表
export function zlsb_zlsqwbList (params) {
	return axios({
		url: '/cxj/zlFjZlsqwb/zlsb_zlsqwbList',
        method: 'get',
		params
	})
}
// 专利申报-专利证书详情
export function zlsb_getZlzs (params) {
	return axios({
		url: '/cxj/zlFjZlzs/zlsb_getZlzs',
        method: 'get',
		params
	})
}
//专利申报-专利证书保存和修改
export function zlsb_zlzsAdd (data) {
	return axios({
		url: '/cxj/zlFjZlzs/zlsb_zlzsAdd',
        method: 'post',
		data
	})
}
// 专利申报-专利证书删除
export function zlsb_zlzsDelete(params) {
	return axios({
		url: '/cxj/zlFjZlzs/zlsb_zlzsDelete',
        method: 'get',
		params
	})
}
// 专利申报-专利证书列表
export function zlsb_zlzsList (params) {
	return axios({
		url: '/cxj/zlFjZlzs/zlsb_zlzsList',
        method: 'get',
		params
	})
}
// 专利申报-其他附件详情
export function zlsb_getQtfj (params) {
	return axios({
		url: '/cxj/zlFjQt/zlsb_getQtfj',
        method: 'get',
		params
	})
}
//专利申报-其他附件保存和修改
export function zlsb_qtfjAdd (data) {
	return axios({
		url: '/cxj/zlFjQt/zlsb_qtfjAdd',
        method: 'post',
		data
	})
}
// 专利申报-其他附件删除
export function zlsb_qtfjDelete(params) {
	return axios({
		url: '/cxj/zlFjQt/zlsb_qtfjDelete',
        method: 'get',
		params
	})
}
// 专利申报-其他附件列表
export function zlsb_qtfjList (params) {
	return axios({
		url: '/cxj/zlFjQt/zlsb_qtfjList',
        method: 'get',
		params
	})
}
//专利申报-获取申报完成信息
export function zlsb_getSbwc (params) {
	return axios({
		url: '/cxj/zlZl/zlsb_getSbwc',
        method: 'get',
		params
	})
}
//专利申报-申报完成提交
export function zlsb_sbwc (params) {
	return axios({
		url: '/cxj/zlZl/zlsb_sbwc',
        method: 'get',
		params
	})
}
//创新奖申报-下载实施应用模板
export function cxjsb_downloadSsyymb (params) {
	return axios({
		url: '/cxj/cxjSbFjSsyy/cxjsb_downloadSsyymb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
//创新奖申报-项目简介模板下载
export function cxjsb_downloadXmjjmb (params) {
	return axios({
		url: '/cxj/cxjSbSbbXmjj/cxjsb_downloadXmjjmb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
//创新奖申报-主要创新点与内涵模板下载
export function cxjsb_downloadCxdmb (params) {
	return axios({
		url: '/cxj/cxjSbSbbCxd/cxjsb_downloadCxdmb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
//创新奖申报-实施应用情况模板下载
export function cxjsb_downloadSbbssyymb (params) {
	return axios({
		url: '/cxj/cxjSbSbbSsyy/cxjsb_downloadSbbssyymb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
//创新奖申报-社会效益与间接经济效益模板下载
export function cxjsb_downloadShxymb (params) {
	return axios({
		url: '/cxj/cxjSbSbbShxy/cxjsb_downloadShxymb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
//创新奖申报-研究报告模板下载
export function cxjsb_downloadYjbgmb (params) {
	return axios({
		url: '/cxj/cxjSbSbbYjbg/cxjsb_downloadYjbgmb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
//创新奖申报- 职工成果研究报告模板下载
export function cxjsb_downloadYjbgmbZg (params) {
  return axios({
    url: '/cxj/cxjSbSbbYjbg/cxjsb_downloadYjbgmbZg',
    method: 'get',
    params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    responseType: 'arraybuffer'
  })
}
//创新奖申报-专利质量评价模板下载
export function cxjsb_downloadZlpjmb (params) {
	return axios({
		url: '/cxj/zlSbbZlpj/cxjsb_downloadZlpjmb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
//创新奖申报-技术先进性评价模板下载
export function cxjsb_downloadJsxjxmb (params) {
	return axios({
		url: '/cxj/zlSbbJsxjx/cxjsb_downloadJsxjxmb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
//创新奖申报-保护措施和成效评价1模板下载
export function cxjsb_downloadBh1mb (params) {
	return axios({
		url: '/cxj/zlSbbBh1/cxjsb_downloadBh1mb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
//创新奖申报-保护措施和成效评价2模板下载
export function cxjsb_downloadBh2mb (params) {
	return axios({
		url: '/cxj/zlSbbBh2/cxjsb_downloadBh2mb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
//创新奖申报-社会效益及发展前景模板下载
export function cxjsb_downloadShxymb_zl (params) {
	return axios({
		url: '/cxj/zlSbbShxy/cxjsb_downloadShxymb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
//创新奖申报-获奖情况模板下载
export function cxjsb_downloadHjqkmb (params) {
	return axios({
		url: '/cxj/zlSbbHjqk/cxjsb_downloadHjqkmb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
//创新奖申报-设计要点及理念模板下载
export function cxjsb_downloadSjydmb (params) {
	return axios({
		url: '/cxj/zlSbbSjyd/cxjsb_downloadSjydmb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
// 主要完成人模板下载
export function cxjsb_downloadWcrmb (params) {
	return axios({
		url: '/cxj/cxjSbWcr/cxjsb_downloadWcrmb',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}


// 创新奖申报-下载单位意见模板
export function cxjsbDownloadDwyjmb(params) {
	return axios({
		url: '/cxj/zgSbSbbDwyj/cxjsb_downloadDwyjmb',
        method: 'get',
        params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}

// 创新奖申报-删除成果
export function cxjsbDeleteCxj (params) {
	return axios({
		url: '/cxj/cxjCxj/cxjsb_deleteCxj',
        method: 'get',
		params
	})
}

// 创新奖申报-获取资料确认信息
export function cxjsb_getZlqr (params) {
	return axios({
		url: '/cxj/cxjCxj/cxjsb_getZlqr',
        method: 'get',
		params
	})
}
//创新奖申报-资料确认
export function cxjsb_zlqr (data) {
	return axios({
		url: '/cxj/cxjCxj/cxjsb_zlqr?cxj_cxj_id='+data,
        method: 'post',
	})
}

// 专利申报-获取材料确认信息
export function zlsb_getZlqr (params) {
	return axios({
		url: '/cxj/zlZl/zlsb_getZlqr',
        method: 'get',
		params
	})
}
//专利申报-资料确认
export function zlsb_zlqr (data) {
	return axios({
		url: '/cxj/zlZl/zlsb_zlqr?cxj_cxj_id='+data,
        method: 'get',
	})
}
//查看推荐意见
export function cxjsb_cktjyj (params) {
	return axios({
		url: '/cxj/cxjTjTjyj/cxjsb_cktjyj',
        method: 'get',
		params
	})
}

// 创新奖推荐-通过成果id获取推荐单位信息
export function cxjtjGetTjdwxxBycgid (params) {
	return axios({
		url: '/cxj/cxjTjTjdwxx/cxjtj_getTjdwxxBycgid',
        method: 'get',
		params
	})
}

export function queryByFlId (params) {
	return axios({
		url: '/cxj/sysCxjXswt/queryByFlId',
        method: 'get',
		params
	})
}
export function queryXsjlFirst (cxj_cxj_id) {
    return axios({
        url: '/cxj/cxjXssc/queryXsjlFirst?cxj_id='+cxj_cxj_id,
        method: 'post'
    })
}
export function cxjfs_myFsxmList (params) {
    return axios({
        url: '/cxj/cxjFsFzXm/cxjfs_myFsxmList',
		params,
        method: 'get'
    })
}
export function cxjfs_pptUpload (data) {
    return axios({
        url: '/cxj/cxjFsPpt/cxjfs_pptUpload',
		data,
        method: 'post'
    })
}

// 获奖证书
export function cxjHjzs_list (params) {
    return axios({
        url: '/cxj/cxjHjzs/cxjgl_getListByCxjId',
		params,
        method: 'get'
    })
}

// 获奖总体信息
export function cxjgl_queryByCxjId (params) {
    return axios({
        url: '/cxj/cxjHjxm/cxjgl_queryByCxjId',
		params,
        method: 'get'
    })
}

// 证书信息
export function cxjgl_getHjzsById (params) {
    return axios({
        url: '/cxj/cxjHjzs/cxjgl_getHjzsById',
		params,
        method: 'get'
    })
}
/* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ */
// 创新奖申报-导出申报表
export function cxjsbDownloadSbbmb(params) {
    return axios({
        url: '/cxj/zgSbSbbDwyj/cxjsb_downloadSbbmb',
        method: 'get',
        params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
    })
}
// 横轴状态
export function cxjsbGetZlzt (params) {
    return axios({
        url: '/cxj/cxjCxj/cxjsb_getZlzt',
		params,
        method: 'get'
    })
}
